/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Game.bc;

import java.io.Serializable;

/**
 *
 * @author ashish.vaidya
 */
public class BullCow implements Serializable{

    private int cow = 0;
    private int bull = 0;

    public BullCow(int b,int c) {
        bull = b;
        cow = c;
    }


    /**
     * Get the value of cow
     *
     * @return the value of cow
     */
    public int getCow() {
        return cow;
    }

    /**
     * Set the value of cow
     *
     * @param cow new value of cow
     */
    public void setCow(int cow) {
        this.cow = cow;
    }



    /**
     * Get the value of bull
     *
     * @return the value of bull
     */
    public int getBull() {
        return bull;
    }

    /**
     * Set the value of bull
     *
     * @param bull new value of bull
     */
    public void setBull(int bull) {
        this.bull = bull;
    }

    public void printString(){
        if(bull>4 || cow>4){
        System.out.println("Invalid Guess!");
        }else{
        System.out.println("Bull: "+ bull+ " Cow: " + cow);
        }
    
    }



}
